package com.hmall.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hmall.user.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface PayUserMapper extends BaseMapper<User> {

    @Update("update tb_user set balance=#{status} where id =#{userId} ")
    void updateUser(@Param("status") Long status,@Param("userId") Long userId);

    @Select("select*from tb_user where id =#{userid}")
    User selectByIdo(Long userid);
}
